#ifndef WF_EDITPASTE_H
#define WF_EDITPASTE_H

#include "pf_previewactioninterface.h"
#include "gui_export.h"

/**
 * This action class can handle user events for pasting entities from
 * the clipboard into the current document.
 *
 */
class GUI_EXPORT WF_EditPaste : public PF_PreviewActionInterface {
	Q_OBJECT
public:
    /**
     * Action States.
     */
    enum Status {
        SetTargetPoint    /**< Setting the reference point. */
    };

public:
    WF_EditPaste( PF_Container& container,
                        PF_GraphicView& graphicView);
    ~WF_EditPaste();
	
	static QAction* createGUIAction(LX_Define::ActionType /*type*/, QObject* /*parent*/);

    virtual void init(int status=0);

    virtual void trigger();

    virtual void mouseMoveEvent(PF_MouseEvent* e);
    virtual void mouseReleaseEvent(PF_MouseEvent* e);

    virtual void coordinateEvent(PF_CoordinateEvent* e);

    virtual void updateMouseButtonHints();
    virtual void updateMouseCursor();
    virtual void updateToolBar();

protected:
    PF_Vector targetPoint;
};

#endif
